<?php echo $header; ?>

<!-- Content -->
    <div id="main" class="p13t">
        <!-- Left column -->
        <?php echo $column_left; ?>
        
        <div id="col2" class="w709">
            <div class="box_tt">
                <?php if(count($breadcrumbs) > 0){ ?>   
                    <h4 class="float_left p5t">           
                        <?php foreach ($breadcrumbs as $breadcrumb) { ?>                      
                            <span class="breadcrumb_sep"><?php echo $breadcrumb['separator']; ?></span><span class="breadcrumb_text"><?php echo $breadcrumb['text']; ?></span>                    
                        <?php } ?>
                    </h4>                    
                <?php }else{ ?>
                    <h4 class="float_left p5t"><?php echo $heading_title; ?></h4>
                <?php } ?>                
                <!--    
                <span class="float_right"><a href="<?php echo $back_product; ?>"><img src="catalog/view/theme/<?php echo $template; ?>/images/bt_tibagetilprodukter.png"/></a></span>    
                -->
            </div>
            <div class="box_content_underpage">
                <div id="prdList" class="box_content_underpage1 min_heght">                        
                    <?php if($categories){ ?>
                        <?php if($path == ''){ ?>
                            <?php if(1 == 0){ ?>
                                <!-- old style -->
                                <div class="p12t p12l">
                                    <div class="bg_banner1">
                                        <div class="w170 bg_banner_text p50l p30t">
                                            <a href="<?php echo isset($categories[0]['href']) ? $categories[0]['href'] : '#'; ?>">beklædning </a><br />
                                            <span style="font-size:13px">dame</span>
                                        </div>
                                        <div class="w170 bg_banner_text p50l p30t">
                                            <a href="<?php echo isset($categories[1]['href']) ? $categories[1]['href'] : '#'; ?>">beklædning </a><br />
                                            <span style="font-size:13px">herre</span>
                                        </div>
                                        <div class="w170 bg_banner_text p50l p30t" style="background-image: none;">
                                            <a href="<?php echo isset($categories[2]['href']) ? $categories[2]['href'] : '#'; ?>">fodtøj</a><br />
                                            <span style="font-size:13px">sko & støvler</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="p12t p12l">
                                    <div class="bg_banner1">
                                        <div class="w170 bg_banner_text p50l p30t">
                                            <a href="<?php echo isset($categories[3]['href']) ? $categories[3]['href'] : '#'; ?>">arbejdstøj </a><br />
                                            <span style="font-size:13px">erhvervsartikler </span>
                                        </div>
                                        <div class="w170 bg_banner_text p50l p30t">
                                            <a href="<?php echo isset($categories[4]['href']) ? $categories[4]['href'] : '#'; ?>">bådudstyr</a><br />
                                            <span style="font-size:13px">friskegrej</span>
                                        </div>
                                        <div class="w170 bg_banner_text p50l p30t" style="background-image: none;">
                                            <a href="<?php echo isset($categories[5]['href']) ? $categories[5]['href'] : '#'; ?>">gaveartikler</a><br />
                                            <span style="font-size:13px">båden og hjemmet</span>
                                        </div>
                                    </div>
                                </div>  
                                <?php $length = count($categories);?>
                                <?php $t = 0; ?>
                                <?php for($i = 6; $i < $length; $i++){ ?>
                                    <?php if($t % 3 == 0) { ?>
                                        <div class="p12t p12l">
                                            <div class="bg_banner1"> 
                                    <?php } ?>                                        
                                        <div class="w170 bg_banner_text p50l p30t">
                                            <a href="<?php echo isset($categories[$i]['href']) ? $categories[$i]['href'] : '#'; ?>"><?php echo $categories[$i]['name']; ?> </a><br />
                                            <span style="font-size:13px"></span>
                                        </div>  
                                    <?php $t++; ?>
                                    <?php if($t % 3 == 0) { ?> 
                                            </div>
                                        </div>
                                    <?php } ?>                                    
                                <?php } ?>   
                            <?php } ?>    
                            
                            <?php $t = 0; ?>
                            <?php foreach($categories as $category){ ?>
                                <?php if($t % 3 == 0) { ?>
                                    <div class="p12t p12l">
                                        <div class="bg_banner1"> 
                                <?php } ?>                                        
                                    <div class="w170 bg_banner_text p50l p30t">
                                        <a href="<?php echo $category['href']; ?>"><?php echo $category['meta_keywords']; ?></a><br />
                                        <span style="font-size:13px"><?php echo $category['meta_description']; ?></span>
                                    </div>  
                                <?php $t++; ?>
                                <?php if($t % 3 == 0) { ?> 
                                        </div>
                                    </div>
                                <?php } ?>                                    
                            <?php } ?>   
                            
                            <?php if($t % 3 != 0) { ?> 
                                    </div>
                                </div>
                            <?php } ?>  
                        <?php } else{ ?>                            
                            <div class="p12t p12l">
                                <?php $i = 1; ?> 
                                
                                <?php foreach($categories as $item){ ?>
                                    <?php $css_class = ($i % 3 != 0 ? 'm10r m10b' : 'm12b'); ?>  
                                    <div class="bottom_pro <?php echo $css_class; ?>"><a href="<?php echo $item['href'] ?>"><?php echo $item['name']; ?></a></div>                            
                                    <?php if($i % 3 == 0){ ?>
                                        <div class="cb"></div>  
                                    <?php } ?>
                                    <?php $i++; ?>   
                                <?php } ?>                                                            
                            </div>                            
                            <?php if(1==0){ ?> 
                            <div class="p12t p20l">
                                <?php $i = 1; ?>
                                <?php foreach($categories as $item){ ?>                                     
                                    <div class="logo_pro m10r m10b">
                                        <a href="<?php echo $item['href'] ?>"><img width="214" height="50" src="<?php echo $item['image']; ?>" /></a>                                        
                                        <?php if(1==0){ ?>
                                        <p class="p5t"><a href="<?php echo $item['href'] ?>"><?php echo $item['name']; ?></a></p>
                                        <?php } ?>
                                    </div>                            
                                    <?php if($i % 3 == 0){ ?>
                                        <div class="cb"></div>  
                                    <?php } ?>
                                    <?php $i++; ?>   
                                <?php } ?>
                            </div>
                            <?php } ?> 
                        <?php } ?>
                    <?php } ?>
                </div>
            </div>
            <div class="box_bottom"></div>
        </div>
        
        <p class="cb"></p>
    </div>
</div>
<!-- End content -->

<!-- footer -->
<?php echo $footer; ?> 